package 工厂模式;

public class main {

    public static void main(String[] args) {
        Factory factory = new Factory();
        Phone mi = factory.createPhone("MI");
        Phone i = factory.createPhone("I");
        System.out.println(mi.brand());
        System.out.println(i.brand());
    }
}
